package com.dreem.composite;

/**
 * @program: DesignParrtern
 * @description: 基础类
 * @author: Peng
 * @create: 2021-02-21  09:10
 **/
public abstract class OrganizationComponent {

    private String name;
    private String des;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    protected void add(OrganizationComponent organizationComponent){
        throw new UnsupportedOperationException();
    }
    protected void remove(OrganizationComponent organizationComponent){
        throw new UnsupportedOperationException();
    }
    protected abstract void print();
}
